﻿using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace B.S.SmartStorPro.Read.API.DTO
{
    public class UserDTO
    {
        /// <summary>
        /// 用户Id主键
        /// </summary>

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int UserID { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        /// 
        [MaxLength(50)]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        /// 
        [MaxLength(255)]
        public string UserPwd { get; set; }
        /// <summary>
        /// 角色ID-外键
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 登录次数
        /// </summary>
        public int LoginCount { get; set; }
    }
}
